
<%@ page import="org.tailor.Fabric" %>
<html>
   <head>
	<meta name="layout" content="mainLayout" />
	<g:set var="entityName" value="${message(code: 'fabric.label', default: 'Fabric')}" />
</head>
    <body>
        <div id="col_middle">
        <div class="body">
            <h1><g:message code="default.list.label" args="[entityName]" /></h1><br/>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="list">
                <table>
                    <thead>
                        <tr>
                        
                            <g:sortableColumn property="id" title="${message(code: 'fabric.id.label', default: 'Id')}" />
                        
                            <g:sortableColumn property="fabricID" title="${message(code: 'fabric.fabricID.label', default: 'Fabric ID')}" />
                        
                            <g:sortableColumn property="fabricName" title="${message(code: 'fabric.fabricName.label', default: 'Fabric Name')}" />
                        
                            <g:sortableColumn property="code" title="${message(code: 'fabric.code.label', default: 'Code')}" />
                        
                            <g:sortableColumn property="date" title="${message(code: 'fabric.date.label', default: 'Date')}" />
                        
                            <g:sortableColumn property="description" title="${message(code: 'fabric.description.label', default: 'Description')}" />
                        
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${fabricInstanceList}" status="i" var="fabricInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <td><g:link action="show" id="${fabricInstance.id}">${fieldValue(bean: fabricInstance, field: "id")}</g:link></td>
                        
                            <td>${fieldValue(bean: fabricInstance, field: "fabricID")}</td>
                        
                            <td>${fieldValue(bean: fabricInstance, field: "fabricName")}</td>
                        
                            <td>${fieldValue(bean: fabricInstance, field: "code")}</td>
                        
                            <td><g:formatDate date="${fabricInstance.date}" /></td>
                        
                            <td>${fieldValue(bean: fabricInstance, field: "description")}</td>
                        
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${fabricInstanceTotal}" />
            </div>
        </div>
        </div>
    </body>
</html>
